package casa.depesos.app.com.http.parser;


import casa.depesos.app.com.http.BaseParser;
import casa.depesos.app.com.http.bean.BannerBean;
import casa.depesos.app.com.http.data.Banner;

public class BannerParser extends BaseParser<BannerBean> {

    String source;

    public BannerParser(String source) {
        this.source = source;
    }

    @Override
    public BannerBean parseData(BannerBean value) {
        if (value != null && value.list != null) {
            for (Banner item : value.list) {
                item.source = source;
            }
        }
        return value;
    }
}
